﻿namespace Bll.Processing
{
    using IDal.Processing;
    using Model.Processing;
    using System;
    using System.Data;
    using DALFactory;
    public class TeaMixedBll
    {
        private static readonly ITeaMixed dal = DataAccess.CreateTeaMixed();

        public static void Add(TeaMixedEnt model)
        {
            dal.Add(model);
        }

        public static void Check(TeaMixedEnt model)
        {
            dal.Check(model);
        }

        public static void Delete(int ID)
        {
            dal.Delete(ID);
        }

        public static DataTable GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }

        public static int GetMaxId(string swhere)
        {
            return dal.GetMaxId(swhere);
        }

        public static TeaMixedEnt GetModel(int ID)
        {
            return dal.GetModel(ID);
        }

        public static DataTable GetPageList(int PageSize, int PageIndex, string strWhere)
        {
            return dal.GetPageList(PageSize, PageIndex, strWhere);
        }

        public static void Update(TeaMixedEnt model)
        {
            dal.Update(model);
        }
    }
}

